package rmi;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

public class TestRmiServer {
	public static void main(String[] args) {
		try {
			StudentInterface studentService = new StudentServiceImpl();
			LocateRegistry.createRegistry(8080);
			Naming.rebind("rmi://10.29.62.241:8080/studentService", studentService);
			System.out.println("服务以及启动");
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}

}
